package com.lmf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class Mycontroller {

    @RequestMapping(value = "/some.do")
    public ModelAndView doSome(String name,Integer age) {
        System.out.println("学生姓名："+name+"，学生年龄："+age);
        ModelAndView mv=new ModelAndView();
        mv.addObject("name",name);
        mv.addObject("age",age);
        mv.setViewName("show");
        return mv;
    }



}
